package me.ywd.seckill.dto;

/**
 * 暴露秒杀接口
 * Created by Administrator on 2016/11/9 0009.
 */
public class Exposer {
    private boolean exposed;
    private String md5;
    private long productId;
    // System time
    private long now;
    // Start and end time
    private long start;
    private long end;

    public Exposer(boolean exposed, long productId, long now, long start, long end) {
        this.exposed = exposed;
        this.productId = productId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public Exposer(boolean exposed, long now, long start, long end) {
        this.exposed = exposed;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public Exposer(boolean exposed, String md5, long productId) {
        this.exposed = exposed;
        this.md5 = md5;
        this.productId = productId;
    }

    public Exposer(boolean exposed, long productId) {
        this.exposed = exposed;
        this.productId = productId;
    }

    public boolean isExposed() {
        return exposed;
    }

    public void setExposed(boolean exposed) {
        this.exposed = exposed;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public long getNow() {
        return now;
    }

    public void setNow(long now) {
        this.now = now;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }
}
